import Layout from '@/layout'

const activityRouter = {
  path: '/activity',
  component: Layout,

  redirect: '/activity/activity',
  meta: {
    title: '活动管理',
    icon: 'activity'
  },
  children: [{
      path: 'activity',
      name: 'ActivityList',
      component: () => import('@/page/Activity/index'),
      meta: {
        title: '活动管理'
      }
    },
    {
      path: 'teaching',
      name: 'pushTeaching',
      component: () => import('@/page/Activity/teaching/index'),
      meta: {
        title: '发布教研',
        needBreadcrumb: true
      },
      hidden: true
    },
    // {
    //   path: 'teaching/next',
    //   name: 'teachingSecond',
    //   component: () => import('@/page/Activity/teaching/next'),
    //   meta: {
    //     title: '发布教研',
    //     needBreadcrumb: true
    //   },
    //   hidden: true
    // },
    {
      path: 'teaching/details',
      name: 'teachingDetails',
      component: () => import('@/page/Activity/teaching/details'),
      meta: {
        title: '教研详情',
        needBreadcrumb: '教研详情'
      },
      hidden: true
    },
    // {
    //   path: 'teaching/',
    //   name: 'teachingDetails',
    //   component: () => import('@/page/Activity/teaching/details'),
    //   meta: { title: '教研详情', needBreadcrumb: '教研详情' }
    // },
    {
      path: 'issueLive',
      name: 'pushIssueLive',
      component: () => import('@/page/Activity/issueLive/index'),
      meta: {
        title: '发布在线课程',
        needBreadcrumb: '发布在线课程'
      },
      hidden: true
    },
    {
      path: 'live/details',
      name: 'liveDetails',
      component: () => import('@/page/Activity/live/details'),
      meta: {
        title: '在线课程详情',
        needBreadcrumb: '在线课程详情'
      },
      hidden: true
    }

    // {
    //   path: 'issueLive',
    //   name: 'IssueLive',
    //   component: () => import('@/page/Activity/prepareLessons/index'),
    //   meta: { title: '备课教案', needBreadcrumb: '发布在线课程' }
    // },

  ]
}

export default activityRouter
